{% extends "layout.html" %}

{% block content %}

<div class="container">

    {% include "flash-message.html" %}

    <div class="login-box center">
        <form class="form-horizontal" method="post">

            <fieldset>
                {% if error %}
                <p class="bg-danger">{{error}}</p>
                {% endif %}
            </fieldset>

            <div class="form-group">
                <label for="email" class="form-label">邮箱:</label>
                <input type="text" id="email" name="email" class="form-control">
            </div>

            <div class="form-group">
                <label for="password" class="form-label">密码:</label>
                <input type="password" id="password" name="password" class="form-control">
                <a href="{{url_for('.forgot')}}">忘记密码</a>
            </div>

            <div class="form-group">
                <input type="checkbox" id="remember" name="remember" class="checkbox-inline" checked>
                <label for="remember" class="label label-danger">记住我</label>
            </div>

            <div class="form-group">
                <button type="submit" class="btn btn-success">登录</button>
                <a href="{{url_for('.register')}}" class="btn btn-primary">注册</a>
            </div>

        </form>
    </div>

</div>


{% endblock %}